﻿#ifndef APP_CONFIG_H
#define APP_CONFIG_H

#ifdef __cplusplus
extern "C" {
#endif

 /*********************
  *      INCLUDES
  *********************/
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
#include "lvgl.h"
#else
#include "../lvgl/lvgl.h"
#endif

/*********************
 *      DEFAULT
 *********************/
#define DEVICE_NAME "LVGL Simulator"
#define DEVICE_MODEL "windows vs2019"
#define SOFTWARE_VERSION "fw_v1.0.0"
#define MANUFACTURER_NAME "wanglm"

  /*********************
   *    MEM
   *********************/
#define app_malloc lv_mem_alloc
#define app_free lv_mem_free
#define app_realloc lv_mem_realloc
#define app_log(format, ...)        printf("[APP]"format"\r\n", ##__VA_ARGS__)
#define app_log_warn(format, ...)   app_log("[Warn] "format, ##__VA_ARGS__)
#define app_log_error(format, ...)  app_log("[Error] "format, ##__VA_ARGS__)

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif
